projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63c414d
)
(free_frame_menubar) [USE_X_TOOLKIT]. New function to destroy the X Widget
author
Fred Pierresteguy
<F.Pierresteguy@frcl.bull.fr>
Fri, 11 Feb 1994 13:19:19 +0000
(13:19 +0000)
committer
Fred Pierresteguy
<F.Pierresteguy@frcl.bull.fr>
Fri, 11 Feb 1994 13:19:19 +0000
(13:19 +0000)
instance of the menubar.
src/xmenu.c
patch
|
blob
|
history
diff --git
a/src/xmenu.c
b/src/xmenu.c
index a2ba24cd86d15a9ce4eb5030bbdedce775013589..8e1e8dfb63bc4c5e6fd27dbdd9c4dd7208ae1fae 100644
(file)
--- a/
src/xmenu.c
+++ b/
src/xmenu.c
@@
-838,6
+838,24
@@
set_frame_menubar (f)
UNBLOCK_INPUT;
}
+
+void
+free_frame_menubar (f)
+ FRAME_PTR f;
+{
+ Widget menubar_widget;
+ int id;
+
+ menubar_widget = f->display.x->menubar_widget;
+ id = (int) f;
+
+ if (menubar_widget)
+ {
+ BLOCK_INPUT;
+ lw_destroy_all_widgets (id);
+ UNBLOCK_INPUT;
+ }
+}
#endif /* USE_X_TOOLKIT */
\f
struct indices {